package top.yaofengqiao.springcloudsimple.demo.biz.infrastructure.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.yaofengqiao.springcloudsimple.demo.biz.domain.order.model.entity.OrderEntity;
import top.yaofengqiao.springcloudsimple.demo.biz.infrastructure.po.RechargeOrderPO;

/**
 * @author 姚凤桥
 */
@Mapper
public interface RechargeOrderMapper extends BaseMapper<RechargeOrderPO> {

    int changeToPayment(OrderEntity orderEntity);

    void changeStatus(@Param("rechargeOrderNo") String rechargeOrderNo,
                      @Param("origin") Integer origin,
                      @Param("target") Integer target);
}




